package zhao.yao.chen.backend.basic.framework.websocket.core.sender.local;

import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.stereotype.Component;
import zhao.yao.chen.backend.basic.framework.websocket.core.sender.AbstractWebSocketMessageSender;
import zhao.yao.chen.backend.basic.framework.websocket.core.sender.WebSocketMessageSender;
import zhao.yao.chen.backend.basic.framework.websocket.core.session.WebSocketSessionManager;

/**
 * 本地的 {@link WebSocketMessageSender} 实现类
 * <p>
 * 注意：仅仅适合单机场景！！！
 *
 * @author zyc
 */
@Component
@ConditionalOnProperty(prefix = "basic.websocket", name = "sender-type", havingValue = "local", matchIfMissing = true)
public class LocalWebSocketMessageSender extends AbstractWebSocketMessageSender {

    public LocalWebSocketMessageSender(WebSocketSessionManager sessionManager) {
        super(sessionManager);
    }

}
